/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.pm.annualdonationrecord;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 企业年度捐赠计划备案子表实体类
 *
 * @author gangan
 * @since 2019-10-24
 */
@Data
@TableName("cqzc_annual_donation_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "企业年度捐赠计划备案子表实体类", description = "企业年度捐赠计划备案子表实体类")
public class AnnualDonationRecord extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 父节点id
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "父节点id")
		private Long parentId;
	/**
	* 捐赠企业
	*/
	@ApiModelProperty(value = "捐赠企业")
		private String donationCompany;
	/**
	* 捐赠依据
	*/
	@ApiModelProperty(value = "捐赠依据", required = true)
		private String donationBasis;
	/**
	* 捐赠对象
	*/
	@ApiModelProperty(value = "捐赠对象", required = true)
		private String donationObject;
	/**
	* 捐赠事由
	*/
	@ApiModelProperty(value = "捐赠事由", required = true)
		private String donationCause;
	/**
	* 捐赠财产构成
	*/
	@ApiModelProperty(value = "捐赠财产构成", required = true)
		private String donationPropertyComposition;
	/**
	* 捐赠金额（万元）
	*/
	@ApiModelProperty(value = "捐赠金额（万元）", required = true)
		private BigDecimal donationAmount;

	/**
	 * 币种
	 */
	@ApiModelProperty(value = "币种")
	private String currencyId;

	/**
	* 捐赠时间
	*/
	@JSONField(format = DateUtil.PATTERN_MONTH)
	@DateTimeFormat(pattern = DateUtil.PATTERN_MONTH)
	@JsonFormat(pattern = DateUtil.PATTERN_MONTH)
	@ApiModelProperty(value = "捐赠时间")
		private Date donationTime;
	/**
	* 乐观锁字段
	*/
		private Integer tsVersion;
	/**
	* 备选1（存储被应用情况，0未被引用，1被引用）
	*/
	@ApiModelProperty(value = "备选1（存储被应用情况，0未被引用，1被引用）")
		private String def1;
	/**
	* 备选2
	*/
		private String def2;
	/**
	* 备选3
	*/
		private String def3;
	/**
	* 备选4
	*/
		private String def4;
	/**
	* 备选5
	*/
		private String def5;
	/**
	* 备选6
	*/
		private String def6;
	/**
	* 备选7
	*/
		private String def7;
	/**
	* 备选8
	*/
		private String def8;
	/**
	* 备选9
	*/
		private BigDecimal def9;
	/**
	* 备选10
	*/
		private BigDecimal def10;
	/**
	* 备选11
	*/
		private BigDecimal def11;
	/**
	* 备选12
	*/
		private BigDecimal def12;
	/**
	* 备选13
	*/
		private BigDecimal def13;
	/**
	* 备选14
	*/
		private Date def14;
	/**
	* 备选15
	*/
		private Date def15;
	/**
	* 备选16
	*/
		private Date def16;
	/**
	* 备选17
	*/
		private Date def17;
	/**
	* 备选18
	*/
		private Long def18;
	/**
	* 备选19
	*/
		private Long def19;
	/**
	* 备选20
	*/
		private Long def20;

	@ApiModelProperty(value = "数据来源 null为系统填报 对应用户id")
	private String dataSource;

	@ApiModelProperty(value = "数据来源id", required = true)
	private String dataSourceId;
}
